$('#new_peer_price').html("<%= escape_javascript(render :partial => 'new.html', :locals =>  { :peer_price => PeerPrice.new(:type_name =>@peer_price.type_name, :released_on => @peer_price.released_on) })%>");
$('#peer_prices .all_peer_prices table .new_peer_price_tr').before("<%= escape_javascript(render :partial => 'peer_price.html', :locals => { :peer_price => @peer_price, :enterprise => @peer_price.enterprise, :index => 0}) %>");
$('#peer_prices .all_peer_prices table').attr('peer_prices_count',(parseInt($('#peer_prices .all_peer_prices table').attr('peer_prices_count')) + 1));
$('#peer_price_<%= @peer_price.id %> .index:last').html($('#peer_prices .all_peer_prices table').attr('peer_prices_count'));
